// 引入 request 文件
import request from '@/utils/request'

// 客户拜访申请
export const getVisitAddApi = (data = '') => {
  return request({
    url: '/system/records/add',
    method: 'post',
    data,
  })
}

// 客户拜访修改
export const getVisitEditApi = (data = '') => {
  return request({
    url: '/system/records/edit',
    method: 'post',
    data,
  })
}

// 客户拜访历史列表
export const getVisitListApi = (query = '') => {
  return request({
    url: '/system/records/list',
    method: 'get',
    params: query,
  })
}

// 客户拜访列表(最新)
export const getNewVisitListApi = (query = '') => {
  return request({
    url: '/system/records/selectVisitRecordsNewList',
    method: 'get',
    params: query,
  })
}